import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { SubjectsModule } from './subjects/subjects.module'
import { MulterModule } from './multer/multer.module'
import { MongooseModule } from '@nestjs/mongoose'
// import { MongodbModule } from './mongodb/mongodb.module'
import { UploadController } from './upload/upload.controller'

@Module({
  imports: [
    SubjectsModule,
    MulterModule,
    MongooseModule.forRoot('mongodb://120.53.107.237:27117/shuati')
  ],
  controllers: [AppController, UploadController],
  providers: [AppService]
})
export class AppModule {}
